package com.keeping.aiimagery.mapper;

import com.keeping.aiimagery.entity.OrdersServices;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keeping.aiimagery.entity.QueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 消费记录 Mapper 接口
 * </p>
 *
 * @author keeping
 * @since 2023-04-05
 */
@Mapper
public interface OrdersServicesMapper extends BaseMapper<OrdersServices> {

    //添加消费记录
    Integer cut(@Param("userId") Integer userId,@Param("integral") Integer integral,@Param("name") String name,@Param("serviceId") Integer serviceId,@Param("state") String state);
    public List<OrdersServices> selectByPage(QueryVo queryVo);
    public int coutById(Integer userId);
}
